package com.socialuni.jimei.controller.social;

import com.socialuni.api.model.ResultRO;
import com.socialuni.sdk.model.RO.SocialOAuthUserRO;
import com.socialuni.sdk.model.RO.UniLoginRO;
import com.socialuni.sdk.api.MockAPI;
import com.socialuni.sdk.constant.MpType;
import com.socialuni.sdk.model.QO.MockQO;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MockController implements MockAPI {
    @Resource
    MockAPI mockApi;

    @Override
    public ResultRO<UniLoginRO<SocialOAuthUserRO>> mockOAuthUserInfo(MockQO mockQO) {
        return mockApi.mockOAuthUserInfo(new MockQO(MpType.wx));
    }

    @Override
    public ResultRO<UniLoginRO<SocialOAuthUserRO>> mockOAuthUserPhoneNum(MockQO mockQO) {
        return mockApi.mockOAuthUserPhoneNum(new MockQO(MpType.wx));
    }
}